<div ng-controller="MaterialCtrl" ng-init="listAction()">
    <ul class="sui-breadcrumb">
        <li><a href="#/material/list">素材</a></li>
        <li class="active"> {{'列表' | translate}}
            <wx-app-list ng-model="wxappid" dft="1" ary="storeary"> </wx-app-list>
        </li>
        <span class="sui-form sui-form pull-right"> 
            <wx-attachment owner-id="attachs" dhf-ng-model="wximg" xtype="url" mult="false" title="Upload" use-type="png,jpeg,gif,jpg,JPG,PNG,JPEG,GIF" hide-list="1" wxappid="wxappid" xclass="sui-btn btn-small btn-success" setback="getlist(attach)" stype="1"></wx-attachment>
        </span>
    </ul>
    <table class="sui-table table-bordered">
        <thead>
            <tr>
                <th>{{'媒体类型'|translate}}</th>
                <th>{{'created_at'|translate}}</th>
                <th>{{'过期时间'|translate}}</th>
                <th>{{'operation'|translate}}</th>
            </tr>
        </thead>
        
        <tbody>
            <tr ng-repeat="list in attachs" style="height: 100px;">
                <td>
                    <wxattachmentlist ng-model="materail" wxappid="list.app_id" mediaid="list.media_id"></wxattachmentlist>
                </td>
                <td>{{list.created_at}}</td>
                <td>{{list.created_at}}</td>
                <td>
                    <a href="#/material/add?materail_rec_id={{list.materail_rec_id}}" class="sui-btn btn-primary">{{'info'|translate}}</a>
                </td>
            </tr>
        </tbody>
    </table>
    <pager page-no="1" page-size="pageSize" total="attachsTotal" get-data="getlist(pageNo)"></pager>
</div>